package com.example.victory.entity.companyEntity;

import com.example.victory.swagger.model.WinnersList;
import lombok.Data;
import org.springframework.beans.BeanUtils;

@Data
public class WinnersListEntity {
    private Integer ryid;
    private Integer ranking;
    private String name;
    private String department;
    private String reportCard;
    private Integer likeNum;

    public WinnersList toWinnersList() {
        WinnersList winnersList = new WinnersList();
        BeanUtils.copyProperties(this, winnersList);
        winnersList.setReportCard(this.getReportCard().trim());
        return winnersList;
    }
}
